package ws

import (
	"github.com/gin-gonic/gin"
	"right/pkg"
	"right/ws/handler"
)

func Router(c *gin.Engine) {
	api := c.Group("/api")
	{
		user := api.Group("/user")
		{
			api.Use(pkg.JWTAuth("2210a"))
			user.POST("/chat", handler.Chat)
		}

	}
}
